<?php

/**
* AdminHeaderModule.class.php
*
* Concrete page module responsable for creating page header
*
* @author     Blazej Zieba <b@zieba.info>
* @copyright  2007 konekto.com
* @version    CVS: $Id:$
*/

require_once("HTML/Template/IT.php");
require_once("framework/PageModule.class.php");


// {{{ AdminHeaderModule

class AdminHeaderModule extends PageModule 
{
    // {{{ Class operations 

    // {{{ AdminHeaderModule
    /**
    * C'tor
    */
    function AdminHeaderModule()
    {
        trigger_error("ENTER AdminHeaderModule::AdminHeaderModule()", E_USER_NOTICE);
    }
    // }}}
    // {{{ getContent

    /**
    * Function returns page content
    *
    */

    function getContent()
    {
        trigger_error("ENTER AdminHeaderModule::getContent()", E_USER_NOTICE);
        $tpl = new HTML_Template_IT("./templates");
        $tpl->loadTemplatefile("admin_header.tpl.xhtml",FALSE,FALSE);
        $tpl->setVariable("TITLE",_('Polowanie na kody Administracja'));
        $global = &PEAR::getStaticProperty('CONFIG_INI','GLOBAL');
        $tpl->setVariable("URL",$global['service_url']);
        $tpl->setVariable("MAINPAGE",_('Polowanie na kody'));
        trigger_error("LEAVE AdminHeaderModule::getContent()", E_USER_NOTICE);

        return $tpl->get(); 
    }
    
    // }}}

    // }}}
}

// }}} 

?>
